<template>
    <div class="padding_lr15" style="padding-bottom: 20px;">
        <p class="notice_title">{{infoData.a_title}}</p>
        <p class="text-right">{{infoData.a_update_time}}</p>
        <div class="margin_t15 lineheight_24 edit_content" v-html="infoData.a_content"></div>
    </div>
</template>
<script>
    import '@/assets/css/main.css'
    import { escapeStringHTML } from '@/assets/js/common.js'
    export default {
        data(){
            return{
                infoData: {},
            }
        },
        methods: {
            init(){

                var _this = this;
                this.$httpGet('/api/index/Article/getdetail',{
                    'a_id': this.$route.params.id
                }).then(response => {
                    
                    if(response.code == 200){

                        _this.infoData = response.msg;
                        _this.infoData.a_content = escapeStringHTML(response.msg.a_content);

                    }else{
                        
                        _this.$toast(response.msg);
                    }

                });
            },
        },
        mounted(){
            this.init();
        },
    }
</script>